/**
 * 邢帅教育
 * <p>
 * 本源代码由数据中心及其作者共同所有，未经版权持有者的事先书面授权，
 * 不得使用、复制、修改、合并、发布、分发和/或销售本源代码的副本。
 *
 * @copyright Copyright (c) 2018. [图片]xsteach.com all rights reserved.
 * @author maikec
 * @date 2018/8/15
 */

/**
 * @author maikec
 * @date 2018/8/15
 */
package chapter24;
//@Value @ConfigurationProperties
//YamlPropertiesFactoryBean YamlMapFactoryBean

//YAML lists are represented as property keys with [index] dereferencers. For example, consider the following YAML:
//
//my:
//servers:
//- dev.example.com
//- another.example.com
//The preceding example would be transformed into these properties:
//
//my.servers[0]=dev.example.com
//my.servers[1]=another.example.com

//@ConfigurationProperties(prefix="my")
//public class Config {
//
//    private List<String> servers = new ArrayList<String>();
//
//    public List<String> getServers() {
//        return this.servers;
//    }
//}

//Spring Boot attempts to validate @ConfigurationProperties classes whenever they are annotated with Spring’s @Validated annotation. You can use JSR-303 javax.validation constraint annotations directly on your configuration class. To do so, ensure that a compliant JSR-303 implementation is on your classpath and then add constraint annotations to your fields, as shown in the following example:
//
//@ConfigurationProperties(prefix="acme")
//@Validated
//public class AcmeProperties {
//
//    @NotNull
//    private InetAddress remoteAddress;
//
//    // ... getters and setters
//
//}

//@Profile